package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String line = "www.tedu.cn";
        Boolean n1 = line.startsWith("www");
        Boolean n2 = line.endsWith("cn");
        System.out.println(n1);
        System.out.println(n2);
    }
}
